let App = getApp();
Page({

  data: {
    userInfo:""
  },

  onLoad: function (options) {
    let that = this
    App._get(App.Domain+'Handler/Applet/getUserInfo', {}, function (result) {
      if(result.code == 1){
        that.setData({
          userInfo:result.data
        })
      }
    })
  },
  loginOut(){
    wx.removeStorage({key:'token'})
    wx.navigateTo({
      url: '../login/index'
    })
  },
  onShow: function () {
   
  },
})